package com.lennon.desinge.wrapper;

public class Client {

    public static void main(String[] args) {
        Component ab = new  ConcreteComponent();
        Component A = new ConcreteDecoratorA(ab);
        // 第一种写法
        Component B = new ConcreteDecoratorB(A);
        // 第二种写法
        B.sampleOperation(); 
    }

}
